package com.firebird.app.fekpsl.ui.activity.me

import android.content.Intent
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.widget.TextView
import com.firebird.app.fekpsl.R
import com.firebird.app.fekpsl.base.BaseTbActivity
import kotlinx.android.synthetic.main.me_statstical_info.*

class StatsticalInfoActivity : BaseTbActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.me_statstical_info)
        initView()
        initListener()
    }

    private fun initListener() {
         mPlatformIntegralField.setOnClickListener {
            val intent = Intent(this@StatsticalInfoActivity, StaIntegralFieldActivity::class.java)
            startActivity(intent)
        }
    }

    private fun initView() {
        val r = this.resources
        val drawable = r.getDrawable(R.drawable.back)
        drawable.setBounds(0, 0, 120, 120)
        val view: View = LayoutInflater.from(this).inflate(R.layout.layout_toolbar, null)
        val tv_back = findViewById<View>(R.id.tv_back) as TextView
        tv_back.setCompoundDrawables(drawable, null, null, null)
        setBack()
        val titleName = r.getString(R.string.platform_integral_field)
        setTitle(titleName)
    }
}
